Forum Discussion
seijim
Microsoft Employee
11 years agoHow to use Power BI Rest API without GUI authentication (redirect uri)
I'm developing an Azure worker role application which pushes data to PowerBI.com service. I referred a C# sample client application via Git Hub. But it authenticates using GUI (redirect uri) during ...
- 10 years ago
You can use the user name and password flow that AAD supports. This 3rd party client library has an example: https://github.com/Vtek/PowerBI.Api.Client
jstearnes
Advocate I
8 years agoI just realised that using the "client_credentials" grant type may not be suitable as the username and password parameters are not used. I switched back to using the "password" grant type but I also had to login to my Azure AD -> Registered Apps -> <App Name> -> All Settings -> Required Permissions and then click the "Grant Permissions" button
skaratela
8 years agoFrequent Visitor
Hi there,
Pleased you got it working! Yes you do need to set the correct permissions in the Azure AD app. I did mention it in my post but obviously I wasn't clear enough!! Thank you for explaining it! I'm sure it will help someone! :)
Pleased you got it working! Yes you do need to set the correct permissions in the Azure AD app. I did mention it in my post but obviously I wasn't clear enough!! Thank you for explaining it! I'm sure it will help someone! :)